<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>约拍平台 - 发布约拍</title>
    <link href="https://cdn.jsdelivr.net/npm/tailwindcss@2.2.19/dist/tailwind.min.css" rel="stylesheet">
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0-beta3/css/all.min.css">
    <style>
        body {
            font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
            background-color: #f8f8f8;
            margin: 0;
            padding: 0;
            color: #333;
        }
        .form-group {
            margin-bottom: 16px;
        }
        .form-label {
            display: block;
            margin-bottom: 6px;
            font-weight: 500;
        }
        .form-input {
            width: 100%;
            padding: 10px 12px;
            border: 1px solid #ddd;
            border-radius: 8px;
            background-color: white;
        }
        .form-input:focus {
            outline: none;
            border-color: #3b82f6;
        }
        .image-upload {
            width: 100px;
            height: 100px;
            border: 1px dashed #ddd;
            border-radius: 8px;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            background-color: white;
        }
        .tag-item {
            display: inline-block;
            padding: 6px 12px;
            background-color: #f0f0f0;
            border-radius: 16px;
            margin-right: 8px;
            margin-bottom: 8px;
            font-size: 12px;
            cursor: pointer;
        }
        .tag-item.active {
            background-color: #3b82f6;
            color: white;
        }
    </style>
</head>
<body>
    <!-- 状态栏将通过JS加载 -->
    
    <div class="pt-7 pb-24">
        <!-- 顶部导航 -->
        <div class="bg-white px-4 py-2 flex items-center sticky top-0 z-10 shadow-sm">
            <a href="home.html" class="text-gray-800 mr-4">
                <i class="fas fa-arrow-left"></i>
            </a>
            <h1 class="text-lg font-bold flex-1 text-center">发布约拍</h1>
            <div class="text-blue-500">
                草稿
            </div>
        </div>
        
        <!-- 表单内容 -->
        <div class="p-4">
            <!-- 约拍类型选择 -->
            <div class="bg-white rounded-lg p-4 mb-4">
                <div class="flex space-x-4">
                    <div class="flex-1 text-center py-3 bg-blue-500 text-white rounded-lg">
                        <i class="fas fa-camera-retro mb-1 text-xl"></i>
                        <div class="text-sm">我是摄影师</div>
                    </div>
                    <div class="flex-1 text-center py-3 bg-gray-100 text-gray-500 rounded-lg">
                        <i class="fas fa-user mb-1 text-xl"></i>
                        <div class="text-sm">我是模特</div>
                    </div>
                </div>
            </div>
            
            <!-- 约拍信息表单 -->
            <div class="bg-white rounded-lg p-4">
                <!-- 标题 -->
                <div class="form-group">
                    <label class="form-label">约拍标题</label>
                    <input type="text" class="form-input" placeholder="例如：日系小清新人像写真">
                </div>
                
                <!-- 封面图 -->
                <div class="form-group">
                    <label class="form-label">封面图片</label>
                    <div class="flex space-x-3">
                        <div class="image-upload">
                            <i class="fas fa-plus text-gray-400"></i>
                        </div>
                        <div class="image-upload">
                            <img src="https://images.unsplash.com/photo-1517841905240-472988babdf9?ixlib=rb-1.2.1&auto=format&fit=crop&w=634&q=80" class="w-full h-full object-cover rounded-lg">
                        </div>
                    </div>
                    <div class="text-xs text-gray-500 mt-1">上传1-9张照片，第一张将作为封面</div>
                </div>
                
                <!-- 约拍风格 -->
                <div class="form-group">
                    <label class="form-label">约拍风格</label>
                    <div class="flex flex-wrap">
                        <div class="tag-item active">日系</div>
                        <div class="tag-item">复古</div>
                        <div class="tag-item">小清新</div>
                        <div class="tag-item">街拍</div>
                        <div class="tag-item">私房</div>
                        <div class="tag-item">古风</div>
                        <div class="tag-item">婚纱</div>
                        <div class="tag-item">写真</div>
                        <div class="tag-item">商业</div>
                        <div class="tag-item">其他</div>
                    </div>
                </div>
                
                <!-- 约拍价格 -->
                <div class="form-group">
                    <label class="form-label">约拍价格</label>
                    <div class="flex items-center">
                        <span class="text-gray-500 mr-2">¥</span>
                        <input type="number" class="form-input" placeholder="输入价格">
                    </div>
                </div>
                
                <!-- 约拍地点 -->
                <div class="form-group">
                    <label class="form-label">约拍地点</label>
                    <div class="flex items-center form-input">
                        <i class="fas fa-map-marker-alt text-gray-400 mr-2"></i>
                        <input type="text" class="flex-1 outline-none" placeholder="选择约拍地点">
                        <i class="fas fa-chevron-right text-gray-400"></i>
                    </div>
                </div>
                
                <!-- 约拍时间 -->
                <div class="form-group">
                    <label class="form-label">约拍时间</label>
                    <div class="flex space-x-2">
                        <div class="flex-1">
                            <div class="flex items-center form-input">
                                <i class="far fa-calendar text-gray-400 mr-2"></i>
                                <input type="text" class="flex-1 outline-none" placeholder="开始日期">
                                <i class="fas fa-chevron-right text-gray-400"></i>
                            </div>
                        </div>
                        <div class="flex-1">
                            <div class="flex items-center form-input">
                                <i class="far fa-clock text-gray-400 mr-2"></i>
                                <input type="text" class="flex-1 outline-none" placeholder="开始时间">
                                <i class="fas fa-chevron-right text-gray-400"></i>
                            </div>
                        </div>
                    </div>
                    <div class="text-xs text-gray-500 mt-1">预计拍摄时长：<span class="text-blue-500">2小时</span></div>
                </div>
                
                <!-- 约拍详情 -->
                <div class="form-group">
                    <label class="form-label">约拍详情</label>
                    <textarea class="form-input" rows="4" placeholder="描述一下约拍的具体内容、要求、提供的服务等..."></textarea>
                </div>
                
                <!-- 服务内容 -->
                <div class="form-group">
                    <label class="form-label">服务内容</label>
                    <div class="flex flex-wrap">
                        <div class="tag-item active">提供场地</div>
                        <div class="tag-item active">提供服装</div>
                        <div class="tag-item">提供化妆</div>
                        <div class="tag-item active">精修照片</div>
                        <div class="tag-item">原片全送</div>
                        <div class="tag-item">提供道具</div>
                    </div>
                </div>
                
                <!-- 联系方式 -->
                <div class="form-group">
                    <label class="form-label">联系方式</label>
                    <div class="flex items-center form-input">
                        <i class="fas fa-phone text-gray-400 mr-2"></i>
                        <input type="text" class="flex-1 outline-none" placeholder="输入手机号码">
                    </div>
                </div>
                
                <!-- 隐私设置 -->
                <div class="form-group">
                    <div class="flex items-center justify-between">
                        <div>
                            <div class="font-medium">公开发布</div>
                            <div class="text-xs text-gray-500">所有人可见</div>
                        </div>
                        <label class="switch">
                            <input type="checkbox" checked>
                            <span class="slider round"></span>
                        </label>
                    </div>
                </div>
            </div>
        </div>
    </div>
    
    <!-- 底部固定栏 -->
    <div class="fixed bottom-0 left-0 right-0 bg-white border-t border-gray-200 p-4">
        <div class="flex space-x-3">
            <button class="flex-1 py-2.5 border border-gray-300 rounded-lg text-gray-700">保存草稿</button>
            <button class="flex-1 py-2.5 bg-blue-500 text-white rounded-lg">立即发布</button>
        </div>
    </div>
    
    <script>
        // 加载状态栏
        document.addEventListener('DOMContentLoaded', function() {
            // 创建iOS状态栏
            const statusBar = document.createElement('div');
            statusBar.className = 'bg-black text-white h-7 flex items-center justify-between px-4 text-xs fixed top-0 left-0 right-0 z-50';
            statusBar.innerHTML = `
                <div>
                    <span>9:41</span>
                </div>
                <div class="flex space-x-1">
                    <i class="fas fa-signal"></i>
                    <i class="fas fa-wifi"></i>
                    <i class="fas fa-battery-full"></i>
                </div>
            `;
            document.body.prepend(statusBar);
            
            // 标签点击事件
            const tagItems = document.querySelectorAll('.tag-item');
            tagItems.forEach(item => {
                item.addEventListener('click', function() {
                    this.classList.toggle('active');
                });
            });
        });
    </script>
    
    <style>
        /* 开关样式 */
        .switch {
            position: relative;
            display: inline-block;
            width: 50px;
            height: 24px;
        }
        .switch input {
            opacity: 0;
            width: 0;
            height: 0;
        }
        .slider {
            position: absolute;
            cursor: pointer;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background-color: #ccc;
            transition: .4s;
        }
        .slider:before {
            position: absolute;
            content: "";
            height: 20px;
            width: 20px;
            left: 2px;
            bottom: 2px;
            background-color: white;
            transition: .4s;
        }
        input:checked + .slider {
            background-color: #3b82f6;
        }
        input:checked + .slider:before {
            transform: translateX(26px);
        }
        .slider.round {
            border-radius: 24px;
        }
        .slider.round:before {
            border-radius: 50%;
        }
    </style>
</body>
</html> 